//bankAccount.cpp
/********************************************************************************
*																				*
*	Author:			Jared Szechy												*
*	Assignment:		Assignment 3												*
*	Class:			CPS-151														*
*	Instructor:		V. Starkley													*
*	Due Date:		September 20												*
*																				*
*	This file implements the BankAccount class.									*
*																				*
********************************************************************************/

#include <string>
using namespace std;

#include "bankAccount.h"

BankAccount::BankAccount()
{
	accountBalance = 0;
}

string BankAccount::getFirstName()
{
	return firstName;
}

string BankAccount::getLastName()
{
	return lastName;
}

string BankAccount::getAccountNumber()
{
	return accountNumber;
}

double BankAccount::getAccountBalance()
{
	return accountBalance;
}

void BankAccount::setFirstName(string first)
{
	firstName = first;
}

void BankAccount::setLastName(string last)
{
	lastName = last;
}

void BankAccount::setAccountNumber(string number)
{
	accountNumber = number;
}

void BankAccount::setAccountBalance(double balance)
{
	accountBalance = balance;
}

bool BankAccount::operator == (BankAccount& item) const
{
	return (accountNumber == item.getAccountNumber());
}

bool BankAccount::operator != (BankAccount& item) const
{
	return (accountNumber != item.getAccountNumber());
}

bool BankAccount::operator < (BankAccount& item) const
{
	return (accountNumber < item.getAccountNumber());
}

bool BankAccount::operator <= (BankAccount& item) const
{
	return (accountNumber <= item.getAccountNumber());
}

bool BankAccount::operator > (BankAccount& item) const
{
	return (accountNumber > item.getAccountNumber());
}

bool BankAccount::operator >= (BankAccount& item) const
{
	return (accountNumber >= item.getAccountNumber());
}